<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>房博会楼市大通关</title>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<script type="text/javascript" src="js/zepto_1.1.3.js"></script>
		<script src="js/txt.js" type="text/javascript" charset="utf-8"></script>
    	<style type="text/css">* {
	margin: 0;
	padding: 0;
	border: 0;
}

.main {
	max-width: 750px;
	margin: auto;
}

.main-wrap {
	position: relative;
	width: 100%;
}

.main-wrap img {
	display: block;
	float: left;
	width: 100%;
	font-size: 0;
	vertical-align: middle;
}

.main-bg {
	position: relative;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

.main-btn {
	position: absolute;
	z-index: 10;
	bottom: 0;
}

.main-btnsub{
	position:absolute;
	width:50%;
	height:50%;
	bottom:10px;
	left:30%;
	margin:auto;
	z-index:200;
}

#mask-win,#mask-win2,#mask-win3,#mask-win4,#mask-win5 {
	position: fixed;
	z-index: 300;
	display: none;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .7);
}

.mask-box {
	position: absolute;
	left: 5%;
	top: 6%;
	z-index: 100;
	width: 90%;
	height: 90%;
	border-radius: 12px;
	background-color: #c76601;
}

.mask-box-head {
	position: absolute;
	z-index: 110;
	top: -30px;
	left: 15%;
	width: 70%;
}

.mask-box-con {
	position: absolute;
	top: 15px;
	left: 15px;
	bottom: 15px;
	right: 15px;
	box-shadow: 0 0 20px #333;
	background-color: #fff;
	border-radius: 12px;
	;
}

.mask-box-con img {
	display: block;
	margin: 10px 10%;
	width: 80%;
}

.mask-box-con h2 {
	text-align: center;
	margin-top: 20px;
	color: #4d4d4d;
	line-height: 2em;
}

.mask-box-con h2:before {
	content: "";
	display: block;
	position: absolute;
	top:.4em;
	left: .8em;
	width: 1.5em;
	height: 2.5em;
	background-repeat: no-repeat;
	background-image: url(images/posi.png);
	background-size: 100%;
}

.mask-box-con p {
	padding: .8em;
	height: 30%;
	overflow: scroll;
	line-height: 1.5em;
	color: #4d4d4d;
	font-size: 14px;
}

.mask-box-close {
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: 110;
	width: 35px;
	height: 35px;
}

.mask-box-con .mask-box-wrong {
	position: absolute;
	width: 30px;
	right: 0;
	top: 0;
}

.mask-box-con .mask-box-btom {
	position: absolute;
	bottom: -15px;
	margin:0 0 -1px;
	width:100%;
}

.mask-box-submit {
	width: 50%;
	height: 2em;
	position: absolute;
	left: 25%;
	bottom: 0;
	z-index: 200;
}

.mask-box-submit2{
	display:block;
	position:relative;
	margin-top:20px;
	height:3em;
	background-image: url(img/indexbtn5.png);
	background-repeat: no-repeat;
	background-size: 100%;
}

.mask-box-submit3{
	display:block;
	position:relative;
	margin-top:20px;
	height:3em;
	background-image: url(img/indexbtn4.png);
	background-repeat: no-repeat;
	background-size: 100%;
}

.mask-box-inp {
	position: relative;
	z-index:100;
}

.mask-box-inp input {
	position: absolute;
	top: 5px;
	left: 50%;
	line-height: 2em;
	width: 40%;
	font-size: 16px;
	outline: 0;
	background-color: rgba(0, 0, 0, 0);
}

.mask-box-inp2 input{
	display:block;
	margin:auto;
	position:static;
	width:50%;
	height:2em;
	text-indent: 1em;
	line-height: 2em;
	border-bottom:1px solid #666;
}
.mask-box-inp2 div{
	position:relative;
}
.mask-box-inp2 .box:first-of-type:before{
	content:"姓名";
	position:absolute;
	line-height: 2em;
	left:2em;
	font-weight: bold;
}
.mask-box-inp2 .box:nth-of-type(2):before{
	content:"电话";
	position:absolute;
	line-height: 2em;
	left:2em;
	font-weight: bold;
}
.indexwin-c{
	width:100%!important;
	margin:10% 0%!important;
}
.chouj{
	overflow: hidden;
	position: relative;
}

#chouj-box{
	position:absolute;
	z-index: 100;
	top:0;
	left:0;
	border-radius: 5px;
	background-color:rgba(255,0,0,.6);
}

.dhm-code{
    width: 80%;
    line-height: 2em;
    text-align: center;
    margin: 20% 10%;
    background-color: #ffe698;
    border-radius: 10px;
    font-size: 20px;
    letter-spacing: .3em;
}

.duihuanma p{
	width:80%;
	height:auto;
	color:#c20000;
	margin:auto;
}

#car {
	position: absolute;
	width: 25%;
	top: 0;
}

#carbg {
	position: absolute;
	z-index: 10;
}</style>
	</head>
	<body>
		<!--
			
			1、运动坐标
			2、微信自动播放
			3、带锁
			4、楼层带锁点击提示
			
		-->
		<audio id="Jaudio" src="img/music.mp3" autoplay loop></audio>
		<script type="text/javascript">
			function audioAutoPlay(id){  
			    var audio = document.getElementById(id);  
			    audio.play();  
			    document.addEventListener("WeixinJSBridgeReady", function () {  
			            audio.play();  
			    }, false);  
			    document.addEventListener('YixinJSBridgeReady', function() {  
			        audio.play();  
			    }, false);  
			}  
			audioAutoPlay('Jaudio');  
		</script>
		
		<style type="text/css">
			.Lock{position:absolute;z-index: 100;width:50%;}
		</style>
		<div class="main">
			<svg id="carbg" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 750 6300">
			 	<image id="animImg" xlink:href="images/bus01.png" width="150" height="100" x="0" y="0">
					<animateMotion id="animMo" path="" begin="0s" dur="3s" fill="freeze" rotation="auto">
					</animateMotion>
					<animateMotion id="animMo2" path="l10 10,l0 0" dur=".1s" fill="none" repeatCount="indefinite">
					</animateMotion>
				</image>
			</svg>
			<div class="main-wrap">
				<div class="main-bg"><img src="images/gamebg (7).jpg"/></div>
				<div class="main-bg"><img src="images/gamebg (8).jpg"/><div class="main-btn"></div></div>
				<div class="main-bg"><img src="images/gamebg (9).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (10).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (11).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (12).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (13).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (14).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (15).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (16).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (1).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (2).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (3).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (4).jpg"/><div class="main-btn">
					<svg class="Lock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
						<path stroke="#999" style="fill-rule:evenodd;clip-rule:evenodd;" d="M14,4h-1.101C12.436,1.718,10.419,0,8,0C5.581,0,3.564,1.718,3.101,4H2    C0.895,4,0,4.895,0,6v8c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V6C16,4.895,15.105,4,14,4z M8,2c1.304,0,2.403,0.837,2.816,2    H5.184C5.597,2.837,6.696,2,8,2z M14,13c0,0.552-0.448,1-1,1H3c-0.552,0-1-0.448-1-1V7c0-0.552,0.448-1,1-1h10    c0.552,0,1,0.448,1,1V13z M8.5,8h-1C6.672,8,6,8.672,6,9.5S6.672,11,7.5,11H7v1h2v-1H8.5c0.828,0,1.5-0.672,1.5-1.5S9.328,8,8.5,8    z"/>
					</svg>
				</div></div>
				<div class="main-bg"><img src="images/gamebg (5).jpg"/><div class="main-btnsub">
					
				</div></div>
				<div class="main-bg"><img src="images/gamebg (6).jpg"/></div>
				<!--<img src="images/bus01.png" id="car"/>-->
			</div>
			<div id="mask-win">
				<div class="mask-box">
					<img class="mask-box-head" src="images/win (2).png"/>
					<img class="mask-box-close" src="images/win (3).png"/>
					<div class="mask-box-con">
						<h2></h2>
						<img src="" alt="" />
						<p></p>
						<div class="mask-box-inp">
							<img src="images/win (5).png"/>
							<input type="" name="" id="" value="" />
							<img src="images/wrong.png" class="mask-box-wrong" style="display:none"/>
							<div class="mask-box-submit"></div>
						</div>
						<img class="mask-box-btom" src="images/btom.png"/>
					</div>
				</div>
			</div>
			
			<!--奖品展示和输入信息弹窗-->
			<div id="mask-win2">
				<div class="mask-box">
					<img class="mask-box-head" src="images/win (9).png"/>
					<img class="mask-box-close" src="images/win (3).png"/>
					<div class="mask-box-con">
						<img src="img/indexwin2.png" class="indexwin" id="indexwinimg"/>
						<div class="mask-box-inp mask-box-inp2">
							<div class="box">
								<input placeholder="请输入姓名" type="" name="" id="user_name" value="" />
							</div>
							<div class="box">
								<input placeholder="请输入手机号" type="" name="" id="user_tel" value="" />	
							</div>
							<div class="mask-box-submit mask-box-submit3" id="dhmbtn"></div>
						</div>
						<img class="mask-box-btom" src="images/btom.png"/>
					</div>
				</div>
			</div>
			
			<!--奖状弹窗-->
			<div id="mask-win4">
				<div class="mask-box">
					<img class="mask-box-head" src="images/win (9).png"/>
					<img class="mask-box-close" src="images/win (3).png"/>
					<div class="mask-box-con">
						<img src="img/indexwin4.png" class="indexwin" id="indexwinimg" style="width:100%;margin:40px 0;"/>
					</div>
				</div>
			</div>
			
			<!--兑换码弹窗-->
			<div id="mask-win5">
				<div class="mask-box">
					<img class="mask-box-head" src="images/win (11).png"/>
					<img class="mask-box-close" src="images/win (3).png"/>
					<div class="mask-box-con duihuanma">
						<div class="dhm-code">
							123456789
						</div>
						<p><b>兑奖时间：</b>4月28日到5月1日房博会展览期间</p>
						<p><b>兑奖地点：</b>南宁国际会展中心2号厅2017广西房地产博览会D15号展位</p>
					</div>
				</div>
			</div>
			
			<!--抽奖弹窗-->
			<div id="mask-win3">
				<div class="mask-box">
					<img class="mask-box-head" src="images/win (10).png"/>
					<img class="mask-box-close" src="images/win (3).png"/>
					<div class="mask-box-con">
						<div class="chouj">	
							<img src="img/chouj.png" class="indexwin indexwin-c"/>
							<div id="chouj-box">
								
							</div>
						</div>
						<div class="mask-box-inp mask-box-inp2">
							<div class="mask-box-submit mask-box-submit2" id="choubtn"></div>
						</div>
						<img class="mask-box-btom" src="images/btom.png"/>
					</div>
				</div>
			</div>
			
			
		</div>
		<script>
			var wid = $(window).width();
			var high = $(window).height();
			var btnWid = wid / 10;
			var currFl = 0;
			var boxWrong = $('.mask-box-wrong').first();
			//按钮的位置和行为
			$('.main-btn')
				.css({
					width: btnWid,
					height: btnWid
				})
				.each(function(index) {
					$(this).css('left', getWid(btnLeft[index]));
					$(this).attr('index', index);
				})
				.on('click', function(e) {
					var _index = parseInt($(this).attr('index'));
					boxWrong.css('display', 'none');
					if(_index == currFl) {
						showMask(_index);
					}else{
						alert('请先解答第'+(currFl+1)+'层！');
					}
				});
			
			function getWid(num) {
				return wid / 750 * num;
			}
			
			//汽车的行为
			var car = $('#car');
			var animMo = $('#animMo');
			var animImg = $('#animImg');
			var carbg = $('#carbg');
			animMo.attr('path',mVal[0]);
			
			var carMove = (function(){
				var animTime = new Date().getTime();
				return function(index){
					var currTime = (new Date().getTime() - animTime)/1000;
					animMo.attr({
						'begin':currTime+'s'
					});
					animMo.attr('path',mVal[index]);
				}
			})();
			
			
			//领奖
			$('.main-btnsub').on('click',playend);
			
			//弹窗
			var mask = $('#mask-win');
			var mask2 = $('#mask-win2');
			var mask3 = $('#mask-win3');
			var mask4 = $('#mask-win4');
			var mask5 = $('#mask-win5');
			var boxCon = $('.mask-box-con').first();
			var boxConP = boxCon.find('p').first();
			var boxConH = boxCon.find('h2').first();
			var boxConI = boxCon.find('img').first();
			var boxInp = $('.mask-box-inp').find('input').first();
			boxCon.attr("height", high - 40);
			$('.mask-box-close').on('click', function() {
				hideMask();
			});
			$('.mask-box-submit').on('click', function() {
				animMo.attr('path',mVal[1]);
				if(boxInp.val() == contxt[currFl + 1].key) {
					var car = $('#car');
					boxWrong.css('display', 'block');
					boxWrong.attr('src', './images/right.png');
					currFl++;
					if(currFl%2==0){
						animImg.attr('xlink:href',('images/bus01.png'));
					}else{
						animImg.attr('xlink:href',('images/bus02.png'));
					}
					setTimeout(function(){
						hideMask();
						carMove(currFl);
						boxInp.val('');
						$('.main-btn').each(function(index){
							if(index<=currFl){$(this).html('');}
						});
					},1000);
				} else {
					boxWrong.css('display', 'block');
					boxWrong.attr('src', './images/wrong.png');
			
				}
			});
			
		
			function showMask(index) {
				mask.show();
				var _index = parseInt(index) + 1;
				boxConH.text(contxt[_index].title);
				boxConP.html(contxt[_index].content);
				boxConI.attr('src', './winimg/' + _index + '.jpg');
			}
			
			function hideMask(index) {
				mask.hide();
				mask2.hide();
				mask3.hide();
				mask4.hide();
			}

			//抽奖
			var chouj = $('.chouj').first();
			var choubox = $('#chouj-box');
			var chounum = 0;
			choubox.css({
				width:getWid(130),
				height:getWid(130),
				left:getWid(chouVal[0][0]),
				top:getWid(chouVal[0][1]+wid*.12)
			})
			function chouStart(index){
				var num = 0;
				var max = Math.random()*10*3;
				var loop = 0;
				var chou = setInterval(function(){
					choubox.css({
						left:getWid(chouVal[num][0]),
						top:getWid(chouVal[num][1]+wid*.12)
					});
					if((num+loop*8)>max){
						if(index==0){
							if(num == 0||num == 2||num == 4||num == 6){
								clearInterval(chou);
								setTimeout(function(){
									mask3.hide();
									mask4.show();
								},2000);
							}
						}else if(index==1){
							if(num == 3||num == 5||num == 7){
								clearInterval(chou);
								setTimeout(function(){
									$('#indexwinimg').attr('src','./img/indexwin3.png');
									mask3.hide();
									mask2.show();
								},2000);
							}
						}else if(index==2){
							if(num == 1){
								clearInterval(chou);
								setTimeout(function(){
									$('#indexwinimg').attr('src','./img/indexwin2.png');
									mask3.hide();
									mask2.show();
								},2000);
							}
						}
					}	
					if(num>=7){
						num = 0;
						loop++;
					}else{
						num++;
					}
				},200);
			}
			
			function dhmshow(code){
				hideMask();
				mask5.show();
				$('.dhm-code').first().text(code);
			}
			
			
			function playend(){
					if(currFl == 13){
						//答题完毕，在这里跟服务器请求获取的奖品
						mask3.show();
						//chounum等于0是中奖状1是中游泳票2是中吸尘器
						$('#choubtn').on('click',function(){
							chouStart(1);
						});
						$('#dhmbtn').on('click',function(){
							//兑换码
							dhmshow(1234567);
							//输入姓名
							console.log($('#user_name').val());
							//输入电话
							console.log($('#user_tel').val());
						});
					}else{
						alert('请答完所有选项！')
					}
			}
			
			
		</script>
	</body>
</html>
